package com.ztesoft.web.baseconfig.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class DmSrcTableTempletArg {
    private String pk_name = "SOURCE_DATA_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DmSrcTableTempletCriteria> oredCriteria;

    public DmSrcTableTempletArg() {
        oredCriteria = new ArrayList<DmSrcTableTempletCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DmSrcTableTempletCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DmSrcTableTempletCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DmSrcTableTempletCriteria or() {
    	DmSrcTableTempletCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DmSrcTableTempletCriteria createCriteria() {
    	DmSrcTableTempletCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DmSrcTableTempletCriteria createCriteriaInternal() {
    	DmSrcTableTempletCriteria criteria = new DmSrcTableTempletCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DmSrcTableTempletCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DmSrcTableTempletCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DmSrcTableTempletCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DmSrcTableTempletCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DmSrcTableTempletCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmSrcTableTempletCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmSrcTableTempletCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DmSrcTableTempletCriterion(condition, value1, value2));
        }

        public DmSrcTableTempletCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DmSrcTableTempletCriteria) this;
        }
        public DmSrcTableTempletCriteria andSourceDataIdIsNull() {
            addCriterion("SOURCE_DATA_ID is null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdIsNotNull() {
            addCriterion("SOURCE_DATA_ID is not null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID =", value, "SOURCE_DATA_ID");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdNotEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <>", value, "SOURCE_DATA_ID");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdGreaterThan(Integer value) {
            addCriterion("SOURCE_DATA_ID >", value, "SOURCE_DATA_ID");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID >=", value, "SOURCE_DATA_ID");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdLessThan(Integer value) {
            addCriterion("SOURCE_DATA_ID <", value, "SOURCE_DATA_ID");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdLessThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <=", value, "SOURCE_DATA_ID");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdNotLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdNotLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdNotRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID  in ", values, "SOURCE_DATA_ID");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdNotIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID not in ", values, "SOURCE_DATA_ID");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID between ", value1, value2, "SOURCE_DATA_ID");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andSourceDataIdNotBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID not between ", value1, value2, "SOURCE_DATA_ID");
            return (DmSrcTableTempletCriteria) this;
        }
        public DmSrcTableTempletCriteria andDbLinkIdIsNull() {
            addCriterion("db_link_id is null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdIsNotNull() {
            addCriterion("db_link_id is not null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdEqualTo(Integer value) {
            addCriterion("db_link_id =", value, "db_link_id");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdNotEqualTo(Integer value) {
            addCriterion("db_link_id <>", value, "db_link_id");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdGreaterThan(Integer value) {
            addCriterion("db_link_id >", value, "db_link_id");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("db_link_id >=", value, "db_link_id");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdLessThan(Integer value) {
            addCriterion("db_link_id <", value, "db_link_id");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdLessThanOrEqualTo(Integer value) {
            addCriterion("db_link_id <=", value, "db_link_id");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdLike(Integer value) {
            addCriterion("db_link_id like ", value, "db_link_id", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdNotLike(Integer value) {
            addCriterion("db_link_id  not like ", value, "db_link_id", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdLeftLike(Integer value) {
            addCriterion("db_link_id like ", value, "db_link_id", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdNotLeftLike(Integer value) {
            addCriterion("db_link_id  not like ", value, "db_link_id", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdRightLike(Integer value) {
            addCriterion("db_link_id like ", value, "db_link_id", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdNotRightLike(Integer value) {
            addCriterion("db_link_id  not like ", value, "db_link_id", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdIn(List<Integer> values) {
            addCriterion("db_link_id  in ", values, "db_link_id");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdNotIn(List<Integer> values) {
            addCriterion("db_link_id not in ", values, "db_link_id");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdBetween(Integer value1, Integer value2) {
            addCriterion("db_link_id between ", value1, value2, "db_link_id");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andDbLinkIdNotBetween(Integer value1, Integer value2) {
            addCriterion("db_link_id not between ", value1, value2, "db_link_id");
            return (DmSrcTableTempletCriteria) this;
        }
        public DmSrcTableTempletCriteria andTableNameIsNull() {
            addCriterion("TABLE_NAME is null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameIsNotNull() {
            addCriterion("TABLE_NAME is not null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameEqualTo(String value) {
            addCriterion("TABLE_NAME =", value, "TABLE_NAME");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameNotEqualTo(String value) {
            addCriterion("TABLE_NAME <>", value, "TABLE_NAME");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameGreaterThan(String value) {
            addCriterion("TABLE_NAME >", value, "TABLE_NAME");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameGreaterThanOrEqualTo(String value) {
            addCriterion("TABLE_NAME >=", value, "TABLE_NAME");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameLessThan(String value) {
            addCriterion("TABLE_NAME <", value, "TABLE_NAME");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameLessThanOrEqualTo(String value) {
            addCriterion("TABLE_NAME <=", value, "TABLE_NAME");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameLike(String value) {
            addCriterion("TABLE_NAME like ", value, "TABLE_NAME", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameNotLike(String value) {
            addCriterion("TABLE_NAME  not like ", value, "TABLE_NAME", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameLeftLike(String value) {
            addCriterion("TABLE_NAME like ", value, "TABLE_NAME", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameNotLeftLike(String value) {
            addCriterion("TABLE_NAME  not like ", value, "TABLE_NAME", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameRightLike(String value) {
            addCriterion("TABLE_NAME like ", value, "TABLE_NAME", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameNotRightLike(String value) {
            addCriterion("TABLE_NAME  not like ", value, "TABLE_NAME", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameIn(List<String> values) {
            addCriterion("TABLE_NAME  in ", values, "TABLE_NAME");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameNotIn(List<String> values) {
            addCriterion("TABLE_NAME not in ", values, "TABLE_NAME");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameBetween(String value1, String value2) {
            addCriterion("TABLE_NAME between ", value1, value2, "TABLE_NAME");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andTableNameNotBetween(String value1, String value2) {
            addCriterion("TABLE_NAME not between ", value1, value2, "TABLE_NAME");
            return (DmSrcTableTempletCriteria) this;
        }
        public DmSrcTableTempletCriteria andOneRecordSizeIsNull() {
            addCriterion("ONE_RECORD_SIZE is null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeIsNotNull() {
            addCriterion("ONE_RECORD_SIZE is not null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeEqualTo(Integer value) {
            addCriterion("ONE_RECORD_SIZE =", value, "ONE_RECORD_SIZE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeNotEqualTo(Integer value) {
            addCriterion("ONE_RECORD_SIZE <>", value, "ONE_RECORD_SIZE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeGreaterThan(Integer value) {
            addCriterion("ONE_RECORD_SIZE >", value, "ONE_RECORD_SIZE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ONE_RECORD_SIZE >=", value, "ONE_RECORD_SIZE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeLessThan(Integer value) {
            addCriterion("ONE_RECORD_SIZE <", value, "ONE_RECORD_SIZE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeLessThanOrEqualTo(Integer value) {
            addCriterion("ONE_RECORD_SIZE <=", value, "ONE_RECORD_SIZE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeLike(Integer value) {
            addCriterion("ONE_RECORD_SIZE like ", value, "ONE_RECORD_SIZE", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeNotLike(Integer value) {
            addCriterion("ONE_RECORD_SIZE  not like ", value, "ONE_RECORD_SIZE", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeLeftLike(Integer value) {
            addCriterion("ONE_RECORD_SIZE like ", value, "ONE_RECORD_SIZE", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeNotLeftLike(Integer value) {
            addCriterion("ONE_RECORD_SIZE  not like ", value, "ONE_RECORD_SIZE", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeRightLike(Integer value) {
            addCriterion("ONE_RECORD_SIZE like ", value, "ONE_RECORD_SIZE", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeNotRightLike(Integer value) {
            addCriterion("ONE_RECORD_SIZE  not like ", value, "ONE_RECORD_SIZE", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeIn(List<Integer> values) {
            addCriterion("ONE_RECORD_SIZE  in ", values, "ONE_RECORD_SIZE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeNotIn(List<Integer> values) {
            addCriterion("ONE_RECORD_SIZE not in ", values, "ONE_RECORD_SIZE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeBetween(Integer value1, Integer value2) {
            addCriterion("ONE_RECORD_SIZE between ", value1, value2, "ONE_RECORD_SIZE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andOneRecordSizeNotBetween(Integer value1, Integer value2) {
            addCriterion("ONE_RECORD_SIZE not between ", value1, value2, "ONE_RECORD_SIZE");
            return (DmSrcTableTempletCriteria) this;
        }
        public DmSrcTableTempletCriteria andKeyColumnIsNull() {
            addCriterion("KEY_COLUMN is null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnIsNotNull() {
            addCriterion("KEY_COLUMN is not null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnEqualTo(String value) {
            addCriterion("KEY_COLUMN =", value, "KEY_COLUMN");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnNotEqualTo(String value) {
            addCriterion("KEY_COLUMN <>", value, "KEY_COLUMN");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnGreaterThan(String value) {
            addCriterion("KEY_COLUMN >", value, "KEY_COLUMN");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnGreaterThanOrEqualTo(String value) {
            addCriterion("KEY_COLUMN >=", value, "KEY_COLUMN");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnLessThan(String value) {
            addCriterion("KEY_COLUMN <", value, "KEY_COLUMN");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnLessThanOrEqualTo(String value) {
            addCriterion("KEY_COLUMN <=", value, "KEY_COLUMN");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnLike(String value) {
            addCriterion("KEY_COLUMN like ", value, "KEY_COLUMN", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnNotLike(String value) {
            addCriterion("KEY_COLUMN  not like ", value, "KEY_COLUMN", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnLeftLike(String value) {
            addCriterion("KEY_COLUMN like ", value, "KEY_COLUMN", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnNotLeftLike(String value) {
            addCriterion("KEY_COLUMN  not like ", value, "KEY_COLUMN", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnRightLike(String value) {
            addCriterion("KEY_COLUMN like ", value, "KEY_COLUMN", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnNotRightLike(String value) {
            addCriterion("KEY_COLUMN  not like ", value, "KEY_COLUMN", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnIn(List<String> values) {
            addCriterion("KEY_COLUMN  in ", values, "KEY_COLUMN");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnNotIn(List<String> values) {
            addCriterion("KEY_COLUMN not in ", values, "KEY_COLUMN");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnBetween(String value1, String value2) {
            addCriterion("KEY_COLUMN between ", value1, value2, "KEY_COLUMN");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andKeyColumnNotBetween(String value1, String value2) {
            addCriterion("KEY_COLUMN not between ", value1, value2, "KEY_COLUMN");
            return (DmSrcTableTempletCriteria) this;
        }
        public DmSrcTableTempletCriteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateEqualTo(String value) {
            addCriterion("CREATE_DATE =", value, "CREATE_DATE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateNotEqualTo(String value) {
            addCriterion("CREATE_DATE <>", value, "CREATE_DATE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateGreaterThan(String value) {
            addCriterion("CREATE_DATE >", value, "CREATE_DATE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE >=", value, "CREATE_DATE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateLessThan(String value) {
            addCriterion("CREATE_DATE <", value, "CREATE_DATE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateLessThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE <=", value, "CREATE_DATE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateNotLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 1);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateLeftLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateNotLeftLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 0);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateRightLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateNotRightLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 2);
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateIn(List<String> values) {
            addCriterion("CREATE_DATE  in ", values, "CREATE_DATE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateNotIn(List<String> values) {
            addCriterion("CREATE_DATE not in ", values, "CREATE_DATE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateBetween(String value1, String value2) {
            addCriterion("CREATE_DATE between ", value1, value2, "CREATE_DATE");
            return (DmSrcTableTempletCriteria) this;
        }

        public DmSrcTableTempletCriteria andCreateDateNotBetween(String value1, String value2) {
            addCriterion("CREATE_DATE not between ", value1, value2, "CREATE_DATE");
            return (DmSrcTableTempletCriteria) this;
        }

    }

    public static class DmSrcTableTempletCriteria extends GeneratedCriteria {

        protected DmSrcTableTempletCriteria() {
            super();
        }
    }

    public static class DmSrcTableTempletCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DmSrcTableTempletCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DmSrcTableTempletCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DmSrcTableTempletCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DmSrcTableTempletCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DmSrcTableTempletCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DmSrcTableTempletCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}